﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace DiamondDash.Views
{
    public partial class LevelProgressView : UserControl
    {
        public LevelProgressView()
        {
            InitializeComponent();
        }

        public void SetLevelProgress(int level, double progressValue)
        {
            this.txtLevel.Text = level.ToString();
            this.txtProgress.Text = progressValue.ToString("f1") + "%";

            this.progress.Value = Convert.ToDouble(progressValue.ToString("f1"));
        }

        public void ShowLevelUpAnimation()
        {
            this.StoryboardLevelUp.Begin();
        }
    }
}
